using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Enter : MonoBehaviour
{
    NodeBase testNode;

    void Start()
    {
        var a = EventManager.Instance;
        SingletonManager.DestroyAllSingletons();
        a = EventManager.Instance;
        testNode = new TestNode();
        RootNode.Instance.AddChild(testNode);
    }

    private void Update()
    {
        SingletonManager.UpdateAllSingletons();
    }

    void OnDisable()
    {
        RootNode.Instance.RemoveNode();
    }
}

public class TestNode : NodeBase
{

}
